begintownscript;
variables;
short choice,i;

body;
beginstate init_state;
i = 0;
while(char_ok(i) == 0){
	i = i + 1;
}
reset_dialog();
add_dialog_str(0,"I've gotten pretty good at finding addresses after making a few hundred deliveries, but I must have walked the waterfront for an hour looking for this warehouse.",0);
add_dialog_str(1,"When I finally did find it, hidden away behind an alley in a particularly scummy part of the waterfront, I hardly believed that this was the right place.",0);
add_dialog_str(2,"It was run down. The walls were made of old wood that was beginning to rot, and the windows had been smashed in but never replaced.",0);
add_dialog_str(3,"After knocking on the door a couple times with no response, I opened the surprisingly unlocked door and walked right in. The place was completely unguarded.",0);
add_dialog_str(4,"I was surprised to find that there were actually goods being stored in this dump, although there weren't any workers around. No workers and no guards-- whoever stored their goods there must not have cared much about hanging onto them.",0);
add_dialog_choice(0,"OK");
choice = run_Dialog(1);
break;

beginstate exit_state;
break;

beginstate start_state;
if(get_flag(11,0) > 0)
	inc_flag(11,1,1);
if(get_flag(11,1) >= 25)
	if(get_flag(11,2) == 0){
		set_flag(11,2,1);
		message_dialog("A group of men entered from the west and crossed the warehouse to speak with me. Something about their demeanor seemed-- off.","_Samael will see you now. Step this way._ Their leader said before he hastily departed.");
	}
break;

beginstate 10;
if(get_flag(11,0) == 0){
	reset_dialog();
	add_dialog_str(0,"_Who goes there? Identify yourself!_ Well at least somebody was there.",0);
	add_dialog_str(1,"_A package eh? Oh, you're the delivery guy. Wait till the boss hears about this......_",0);
	add_dialog_str(2,"I wasn't sure I liked the sound of that, but before I could ask what he meant, the worker, if that's what he was, had exited to the north.",0);
	add_dialog_choice(0,"OK");
	choice = run_dialog(1);
	set_flag(11,0,1);
	set_flag(11,1,1);
	erase_char(6);
}
break;

beginstate 11;
message_dialog("I had come this far, I wasn't turning back now. This was an important delivery, I couldn't just not show up at all.","");
block_entry(1);
break;

beginstate 12;
if(get_flag(11,2) > 0)
	//move_to_new_town(4,24,43);
	move_to_new_town(12,24,43);
message_dialog("The worker had exited through the doors to the west, but he must have locked them behind him because they were closed now.","");
block_entry(1);
break;


beginstate 100;
block_entry(1);
break;